package edu.neu.chenhan.model;

import java.util.Date;

public class ToolDetail {
    private String id;
    private String name; // 工具名称
    private Date releaseDate; // 发布日期
    private String version; // 当前版本
    private String developer; // 研发团队
    private String summary; // 工具概述
    private String features; // 主要功能
    private String technicalFeatures; // 技术特点
    private String cases; // 应用案例
    private String versionHistory; // 版本更新记录
    private String downloadUrl; // 下载地址

    // 默认构造函数
    public ToolDetail() {
        this.id = "tool_001";
        this.name = "智能质量检测系统";
        this.releaseDate = new Date();
        this.version = "V2.0.1";
        this.developer = "中国电子技术标准化研究院";
        this.summary = "基于人工智能技术的自动化质量检测工具...";
        this.features = "1. 缺陷自动识别\n2. 尺寸偏差检测...";
        this.technicalFeatures = "1. 高精度检测\n2. 快速处理...";
        this.cases = "案例1: 某电子厂应用效果提升30%\n案例2: ...";
        this.versionHistory = "V2.0.1: 新增XX功能\nV2.0.0: 初始版本";
        this.downloadUrl = "https://example.com/download/tool.apk";
    }

    // Getters and Setters
    public String getId() { return id; }
    public void setId(String id) { this.id = id; }

    public String getName() { return name; }
    public void setName(String name) { this.name = name; }

    public Date getReleaseDate() { return releaseDate; }
    public void setReleaseDate(Date releaseDate) { this.releaseDate = releaseDate; }

    public String getVersion() { return version; }
    public void setVersion(String version) { this.version = version; }

    public String getDeveloper() { return developer; }
    public void setDeveloper(String developer) { this.developer = developer; }

    public String getSummary() { return summary; }
    public void setSummary(String summary) { this.summary = summary; }

    public String getFeatures() { return features; }
    public void setFeatures(String features) { this.features = features; }

    public String getTechnicalFeatures() { return technicalFeatures; }
    public void setTechnicalFeatures(String technicalFeatures) { this.technicalFeatures = technicalFeatures; }

    public String getCases() { return cases; }
    public void setCases(String cases) { this.cases = cases; }

    public String getVersionHistory() { return versionHistory; }
    public void setVersionHistory(String versionHistory) { this.versionHistory = versionHistory; }

    public String getDownloadUrl() { return downloadUrl; }
    public void setDownloadUrl(String downloadUrl) { this.downloadUrl = downloadUrl; }
}